from multiprocessing import Process
import time
def func(i):
    print('执行第%s次了'%i)
    time.sleep(1)
    print('第%s结束'%i)


if __name__ == '__main__':
    for i in range(10):
        p=Process(target=func,args=(i,))
        p.start()
        p.join()
    print('循环结束')
    a='hello'
    print(a[2:4])



